home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / dev / misc / relocs.readme < prev    next >
Encoding:
Text File  |  2000-07-01  |  1.4 KB  |  41 lines

  1. Short:    Shows the layout of executable files
  2. Author:   Kyzer/CSG <kyzer@4u.net>
  3. Uploader: Kyzer/CSG <kyzer@4u.net>
  4. Type:     dev/misc
  5.  
  6. This handy tool prints out the layout of an executable file, like so:
  7. 1> relocs relocs
  8. Hunks 0 to 0 are directly loaded
  9. Hunk memory requirements:
  10. hunk 00:     3924 bytes of ANY  mem
  11.  
  12. Hunk scan:
  13. hunk 00: HUNK_CODE    ($3E9) offset 32, 3924 bytes length
  14.  
  15. Reloc dump:
  16. hunk 00 : $00000B08 -> hunk 00 : $00000B26
  17. hunk 00 : $00000B04 -> hunk 00 : $00000B36
  18. hunk 00 : $00000B00 -> hunk 00 : $00000B46
  19. ...
  20. and so on.
  21.  
  22. It's not as nice at showing the structure as other hunk tools. What it does
  23. do, firstly, is tell you the offset in the file and exact length of a hunk.
  24. This way, you can easily clip hunks out of files.
  25.  
  26. Secondly, and most importantly, it shows you the relocs of each hunk! This
  27. is pretty much the point of the tool. I used it for debugging an executable
  28. decruncher, and also to reverse-engineer a huge demo (100kb code, 20Mb BSS)
  29. that wouldn't normally load. You can use it however you like.
  30.  
  31.  
  32. ============================= Archive contents =============================
  33.  
  34. Original  Packed Ratio    Date     Time    Name
  35. -------- ------- ----- --------- --------  -------------
  36.     4932    2642 46.4% 11-May-00 17:12:24  relocs
  37.     3729    1327 64.4% 11-May-00 17:12:24  relocs.e
  38.     1030     557 45.9% 11-May-00 17:26:50  relocs.readme
  39. -------- ------- ----- --------- --------
  40.     9691    4526 53.2% 13-May-100 07:27:16   3 files
  41.